|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectraar.agent.process.RAProcess
raar.agent.process.RASpecialProcess
public abstract class RASpecialProcess
RASpecialProcess is a process that executes and sends it's data before regular processes (RAProcess) are allowed to do so. It is abstract, since these processes must have a very well-defined run() method!
| Field Summary |
|---|
| Fields inherited from class raar.agent.process.RAProcess |
|---|
hasRun, inregister, outregister, register, sourceCode, statement |
| Constructor Summary | |
|---|---|
RASpecialProcess()
Default constructor. |
|
RASpecialProcess(RARegister register,
RAStatement statement,
RASetRegister inregister,
RAFetchRegister outregister)
Construct an RASpecialProcess with register, statement(set), input and output. |
|
| Method Summary | |
|---|---|
abstract java.lang.Object |
clone()
Clone the process. |
void |
decreaseBinding()
For dynamic binding. |
void |
execute()
This special process may never just execute; it must be run! |
RADataType |
getAcceptedDataType()
For dynamic binding. |
RADataType |
getDataType(java.lang.String name)
Necessary for making healthy connections. |
abstract java.lang.String |
getDescription()
Provide a description; how does the process work, et cetera. |
void |
increaseBinding()
For dynamic binding. |
boolean |
isSpecial()
Use this method to determine whether this process is a special one that should be executed before other processes (i.e. processes with this value on true will ALL be executed before processes with this value on false, and their outputs will be sent to connected inputs, also before the processes with this flag on false start). |
void |
reset()
Reset process but keep accepted data type if specified. |
abstract void |
run()
Run the process; copy the inputs from the input register to the internal register, execute the process, and copy outputs to the output register. |
void |
setAcceptedDataType(RADataType dt)
For dynamic binding. |
void |
setSourceCode(java.lang.String code)
Setting the process source code is illegal and will do nothing. |
| Methods inherited from class raar.agent.process.RAProcess |
|---|
acceptsInput, dumpRegisters, get, getInputNames, getInputObjects, getOutputNames, getOutputObjects, getProcessName, getSourceCode, set, setProcessName, suppliesOutput |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RASpecialProcess()
public RASpecialProcess(RARegister register,
RAStatement statement,
RASetRegister inregister,
RAFetchRegister outregister)
| Method Detail |
|---|
public void setSourceCode(java.lang.String code)
setSourceCode in class RAProcess
public void execute()
throws RAException
execute in class RAProcessRAException
public abstract void run()
throws RAException
run in class RAProcessRAException
public RADataType getDataType(java.lang.String name)
throws RAException
getDataType in class RAProcessRAExceptionpublic boolean isSpecial()
isSpecial in class RAProcesspublic void setAcceptedDataType(RADataType dt)
public RADataType getAcceptedDataType()
public void increaseBinding()
public void decreaseBinding()
public abstract java.lang.Object clone()
RAProcess
clone in class RAProcess
public void reset()
throws RAException
reset in class RAProcessRAExceptionpublic abstract java.lang.String getDescription()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||